home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / time / cybercron / s / crontab
Encoding:
Text File  |  1992-09-25  |  6.7 KB  |  134 lines

  1. # reload the system clock from the battery backed clock, which keeps
  2. # better time on my machine.
  3. 45 5         * * *     bin:FixClock
  4.  
  5. ##############################################################################
  6. # do gongs on the hour -- got annoying so have turned it off...
  7. #0 *          * * *     :REXX ChimeHour :NOLOG
  8.  
  9. ##############################################################################
  10. # outgoing uucico jobs
  11. 30 *         * * *     :REXX UUio all :NOLOG
  12. 0 0,6,11,17  * * *     :REXX UUio clout
  13. 0 5,22       * * *     :REXX UUio chinet
  14.  
  15. ##############################################################################
  16. # handle jobs related to BMS.  BMS does its own locking internally
  17. # so we don't have to worry about BMS jobs colliding with themselves.
  18. # however, we use the "z" job queue to sequence the copying of the
  19. # database to a backup file before running BMS cleanup.
  20. 15,45 *      * * *     BMS batch :NOLOG :PRI -5
  21. 0 4          * * *     :REXX BMS:bms-update force
  22. 0 3          * * 0     copy BMS:BMS.DB BMS:BMS.DB.old :OBEYQUEUE z
  23. 0 3          * * 0     BMS cleanup :MAILUSER bms-manager :OBEYQUEUE z
  24.  
  25. ##############################################################################
  26. # generate a dummy control file for AmigaNet so that we will keep
  27. # retrying the connection until we get it (the number is often
  28. # busy)
  29. 55 4         * * *     UUCP:c/MakeAmigaNetDummy
  30.  
  31. ##############################################################################
  32. # rebuild our find database
  33. 45 4         * * *     bin:UpdateDB :PRI -5
  34.  
  35. ##############################################################################
  36. # we do an incremental backup every day.  Note that ReadArgs() eats the =
  37. # character we need in the config= portion of the command line.  To prevent
  38. # this from happening, we quote the configuration file argument and escape
  39. # the = sign.  If we didn't, CyberCron would start the job with the
  40. # argument "config SYS:Am..." instead of the necessary "config=SYS:Am...".
  41. 0 12         * * *     SYS:Ami-Back/Ami-Back20 "config*=SYS:Ami-Back/Incremental.config" nowindows
  42.  
  43. ##############################################################################
  44. # rebuild our pathalias database from the uucp maps
  45. # while it is highly unlikely that this would run at the same time
  46. # ScanForMaps is running, we still specify the "n" (for news) job
  47. # queue to prevent this from ever happening.  If we change the times
  48. # we run any of this stuff at, we won't have to worry about collisions
  49. # then, either, by taking care of it now.
  50. # note that the pipes rely on WShell.
  51. #0 14         * * 0     type uumaps:d.#? uumaps:u.#? | pathalias -i | makedb :OBEYQUEUE n :PRI -5 :CUSTOMSH WShell
  52.  
  53. ##############################################################################
  54. # handle various news jobs.  Check if we got any maps in and move them into
  55. # uumaps: if we did.  Batch news up and run trimnews.  All this is done
  56. # under the "n" (for news) job queue to insure sequencing so that one job
  57. # doesn't start walking on top of the previous job (like trimnews and
  58. # batchnews running at the same time).
  59. 0 9          * * *     :REXX ScanForMaps :OBEYQUEUE n
  60. 20 1,3,5,7,9,11,13,15,17,19,21,23 * * * UUCP:c/BatchNews :OBEYQUEUE n :PRI -5
  61. 0  10        * * *     UUCP:c/trimnews :OBEYQUEUE n :PRI -5
  62.  
  63. ##############################################################################
  64. # TurboText likes to save .info files with everything it writes out.
  65. # Whenever we write mail or news, though, the file that gets edited
  66. # is in t:.  When we save, we save a .info file with it.  Since dmail
  67. # or GRn or whatever comes along and runs sendmail/postnews on the
  68. # temp file and then deletes it, we are left with a lone .info file
  69. # sitting in t:.  Do this enough and you have a bunch of .info files
  70. # sitting in t:.  So we have a cron entry to blow them away periodically.
  71. 0 *          * * *     Delete T:#?.info force :NOLOG
  72.  
  73. ##############################################################################
  74. # build a node report for the previous week and then trim the xferstat log.
  75. # we use the "r" (for report) queue to synchronize this so the trim
  76. # doesn't stomp on the report generator.
  77. 0 0          * * 0     UUCP:c/uuacct -d7 :MAILUSER root :OBEYQUEUE r :PRI -5
  78. 0 0          * * 0     UUCP:c/trimfile UUSPOOL:XferStat -30 :OBEYQUEUE r :PRI -5
  79.  
  80. ##############################################################################
  81. # trim some of our logfiles
  82. 45 21        * * *     UUCP:c/trimfile T:CronLog T:SpooldLog -100 :PRI -5
  83. 45 3         * * 0     UUCP:c/trimfile TERM:term.logfile JRCOMM:jrcomm.log EMPIRE:empire.log IMPERIUM:Data/imperium.log -75 :PRI -5
  84.  
  85. ##############################################################################
  86. # here we have a bunch of events that send x10 commands out to control
  87. # things around the house.
  88.  
  89. # Turn the kitchen light on at night and off in the morning
  90. 0,30 18           * * *     CyberX10 unit 8 on d2
  91. 0 9,10,12,14,16   * * *     CyberX10 unit 8 off d2 :NOLOG
  92.  
  93. # Turn the dining room light out periodically
  94. 0,15,30,45 1-6    * * *     CyberX10 unit 8 off d1 :NOLOG
  95. 0,30 10-17        * * *     CyberX10 unit 8 off d1 :NOLOG
  96.  
  97. # turn the kid's bathroom light out periodically
  98. 0,15,30,45 1-6,10-16,19-20 * * * CyberX10 unit 8 off e2 :NOLOG
  99.  
  100. # deal with the front entrance light
  101. 0 20              * * *     CyberX10 unit 8 on e1
  102. 0,30 0-19,23      * * *     CyberX10 unit 8 off e1 :NOLOG
  103.  
  104. # make sure my lights go out after I've left in the morning
  105. 0 8,9   * * 1-3,5 CyberX10 unit8 off c1 c2
  106. 0 10,11 * * 4     CyberX10 unit8 off c1 c2
  107. 0 9,10  * * 6     CyberX10 unit8 off c1 c2
  108. 0 12,13 * * 0     CyberX10 unit8 off c1 c2
  109.  
  110. # make sure the AT&T terminal doesn't accidentally get left on.  we use
  111. # an ARexx string command here to check for an ARexx clip variable that
  112. # can override this.
  113. #
  114. # note that ReadArgs() stops parsing the line when it sees a ; character.
  115. # this presents a problem, since we need to use ; to delimit statements in
  116. # the ARexx string command.  The solution is to quote the entire command
  117. # and use * to escape the ; characters.
  118. 0 * * * * :REXX "`options results*; stat = getclip('AT&T_TERMINAL_RESET')*; if stat ~= '' then exit*; address command 'CyberX10 unit 8 off c16'" :NOLOG
  119.  
  120. ##############################################################################
  121. # wake me up in the morning
  122.  
  123. 15-59 7  * * 1-3,5 :REXX PlaySound :NOLOG  :NAME MonTueWedFri
  124. 0 8      * * 1-3,5 :REXX `setclip(NOSOUND) :NAME MonTueWedFri-Reset
  125.  
  126. 15-59 9  * * 4     :REXX PlaySound :NOLOG  :NAME Thu
  127. 0     10 * * 4     :REXX `setclip(NOSOUND) :NAME Thu-Reset
  128.  
  129. 15-59 8  * * 6     :REXX PlaySound :NOLOG  :NAME Sat
  130. 0     9  * * 6     :REXX `setclip(NOSOUND) :NAME Sat-Reset
  131.  
  132. 0-45  11 * * 0     :REXX PlaySound :NOLOG  :NAME Sun
  133. 46    11 * * 0     :REXX `setclip(NOSOUND) :NAME Sun-Reset
  134.